package com.base.service.impl;

import com.base.mapper.voipmapper.AboutsMapper;
import com.base.mapper.voipmapper.TourCategoryMapper;
import com.base.po.voip.Abouts;
import com.base.po.voip.AboutsExample;
import com.base.po.voip.TourCategory;
import com.base.po.voip.TourCategoryExample;
import com.base.service.AboutsService;
import com.base.service.TourCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tourCategoryService")
public class TourCategoryServiceImpl implements TourCategoryService {
	
	@Autowired
	private TourCategoryMapper tourCategoryMapper;


	@Override
	public int countByExample(TourCategoryExample example) {
		return tourCategoryMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TourCategoryExample example) {
		return tourCategoryMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return tourCategoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TourCategory record) {
		return tourCategoryMapper.insert(record);
	}

	@Override
	public int insertSelective(TourCategory record) {
		return tourCategoryMapper.insertSelective(record);
	}

	@Override
	public List<TourCategory> selectByExample(TourCategoryExample example) {
		return tourCategoryMapper.selectByExample(example);
	}

	@Override
	public List<TourCategory> selectByLevel1(String parentid, String shopid) {
		return tourCategoryMapper.selectByLevel1(parentid, shopid);
	}

	@Override
	public TourCategory selectByPrimaryKey(String id) {
		return tourCategoryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TourCategory record, TourCategoryExample example) {
		return tourCategoryMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TourCategory record, TourCategoryExample example) {
		return tourCategoryMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TourCategory record) {
		return tourCategoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TourCategory record) {
		return tourCategoryMapper.updateByPrimaryKey(record);
	}
}
